package com.jic.market.service;
import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.market.entity.PromotionMutexShareShipModel;

import java.util.Map;

/**
 *  活动互斥共享关系 服务类
 *
 * @author xuyongliang
 * @since 2020-02-26
 */

public interface PPromotionMutexShareShipService {

    /**
     *  新增
     * @param modelEntity
     */
    Integer promotionMutexShareShipAdd(PromotionMutexShareShipModel modelEntity);

    /**
     *  编辑
     * @param modifyEntity
     * @param whereCondition
     */
    Integer promotionMutexShareShipEdit(PromotionMutexShareShipModel modifyEntity, PromotionMutexShareShipModel whereCondition);

    /**
     *  删除
     * @param \
     */
    Integer promotionMutexShareShipDelete(Map map);

    /**
     *  查询详情
     * @param
     */
    PromotionMutexShareShipModel promotionMutexShareShipQuery(Map map);

    /**
     *  分页查询
     * @param
     */
    PageResult<PromotionMutexShareShipModel> promotionMutexShareShipQueryPageList(PromotionMutexShareShipModel modelEntity, Page pageQuery);

    /**
    *   修改单据状态
    *  @param \
    */
    Integer promotionMutexShareShipChangeStatus(Map map);

    /**
     *   修改审批状态
     * @param \
     */
    Integer promotionMutexShareShipChangeApproveStatus(Map map);


    /**
     * 查询两个促销活动互斥共享关系
     * @param promotionFirst
     * @param promotionSecond
     * @return
     * @see com.jic.market.common.constant.PromotionMutexConstants
     */
    Integer queryTwoPromotionsShipStatus(Integer promotionFirst, Integer promotionSecond);
}